package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._26SoftwareUpdateResult;
import com.zxq.uart.frame.encoder._26SoftwareUpdateCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _26SoftwareUpdateController extends PlatformExchange<_26SoftwareUpdateCmd, _26SoftwareUpdateResult> {


    @Override
    public Integer getCmd() {
        return 0x26;
    }

    @PostMapping("exchange/26")
    @Override
    public ResultVO<_26SoftwareUpdateResult> exchange(@RequestBody _26SoftwareUpdateCmd order) {
        return super.exchange(order);
    }

    @Override
    public _26SoftwareUpdateResult getResult() {
        return new _26SoftwareUpdateResult();
    }

}

